package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 生产信息对象 production
 * 
 * @author ruoyi
 * @date 2024-12-03
 */
public class Production extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 生产编号 */
    private Long productionId;

    /** 产品名称 */
    @Excel(name = "产品名称")
    private String productName;

    /** 生产数量 */
    @Excel(name = "生产数量")
    private Long quantity;

    /** 目标日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "目标日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date targetDate;

    /** 生产状态 */
    @Excel(name = "生产状态")
    private Long status;

    public void setProductionId(Long productionId) 
    {
        this.productionId = productionId;
    }

    public Long getProductionId() 
    {
        return productionId;
    }

    public void setProductName(String productName) 
    {
        this.productName = productName;
    }

    public String getProductName() 
    {
        return productName;
    }

    public void setQuantity(Long quantity) 
    {
        this.quantity = quantity;
    }

    public Long getQuantity() 
    {
        return quantity;
    }

    public void setTargetDate(Date targetDate) 
    {
        this.targetDate = targetDate;
    }

    public Date getTargetDate() 
    {
        return targetDate;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("productionId", getProductionId())
            .append("productName", getProductName())
            .append("quantity", getQuantity())
            .append("targetDate", getTargetDate())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
